package com.calm.editor.handler;

import org.springframework.stereotype.Service;

import com.calm.editor.entity.NodeElement;
import com.calm.editor.servlet.Result;

@Service("node")
public class NodeService extends BaseService<NodeElement>{
	
	public void getById(Integer id,Result<NodeElement> result){
		result.setEvent("loadNode");
		NodeElement byId = getById(id);
		result.setData(byId);
	}
	
	public void update(NodeElement id,Result<String> result){
		result.setEvent("saveNode");
		update(id);
	}

	@Override
	public Class<NodeElement> getEntityClass() {
		return NodeElement.class;
	}
}
